package com.jhw.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jhw
 * @since 2022-10-10
 */
@TableName("t_user_integral_log")
public class UserIntegralLog extends Model<UserIntegralLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 创建时间
     */
    private Date creatime;
    /**
     * 来源
     */
    @TableField("from_reason")
    private String fromReason;
    /**
     * 积分状态
     */
    @TableField("integral_state")
    private Integer integralState;
    /**
     * 积分
     */
    private Integer integral;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreatime() {
        return creatime;
    }

    public void setCreatime(Date creatime) {
        this.creatime = creatime;
    }

    public String getFromReason() {
        return fromReason;
    }

    public void setFromReason(String fromReason) {
        this.fromReason = fromReason;
    }

    public Integer getIntegralState() {
        return integralState;
    }

    public void setIntegralState(Integer integralState) {
        this.integralState = integralState;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserIntegralLog{" +
        ", id=" + id +
        ", userId=" + userId +
        ", creatime=" + creatime +
        ", fromReason=" + fromReason +
        ", integralState=" + integralState +
        ", integral=" + integral +
        "}";
    }
}
